package yh;

/**
 * 数组的静态定义与初始化
 */
public class ArrayDemo2 {
    public static void main(String[] args) {
        //数组的声明
        //String[] arr=new String[]{"乔峰","段誉","杨过"};
        //简写
        String[] arr={"乔峰","段誉","杨过"};
        //取值
        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[2]);
        //System.out.println(arr[3]);
    }
}
